package com.jcl.core.security;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName RequestStatus
 * @Description TODO
 * @Author yyliu
 * @Date 2018/9/21 12:43
 * @Version 1.0
 **/
public class RequestStatus {

    public static final String REQUEST_PARAM_CODE       = "30001";
    public static final String REQUEST_ILLEGAL_CODE     = "30002";
    public static final String REQUEST_INVALID_CODE     = "30002";

    public static final String REQUEST_PARAM_EN         = "Request Header loss of parameter TOKEN !";
    public static final String REQUEST_ILLEGAL_EN       = "Illegal request!";
    public static final String REQUEST_INVALID_EN       = "Request invalid !";

    public static Map<String, String> statusMap = new HashMap<>();

    static {
        statusMap.put(REQUEST_PARAM_CODE, REQUEST_PARAM_EN);
        statusMap.put(REQUEST_ILLEGAL_CODE, REQUEST_ILLEGAL_EN);
        statusMap.put(REQUEST_INVALID_CODE, REQUEST_INVALID_EN);
    }

}
